# Contributor: Feng Shu <tumashu@163.com>

_realname=rime-pinyin-simp
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20210627
_commit=b0e84cda02c613ebdedc127a26131b3800f45a8e
pkgrel=1
pkgdesc="Simple pinyin input for rime (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
license=('LGPL')
# dependency for reverse lookup
depends=("${MINGW_PACKAGE_PREFIX}-rime-stroke")
url="https://github.com/rime/rime-pinyin-simp"
source=("https://github.com/rime/rime-pinyin-simp/archive/${_commit}/rime-pinyin-simp-${_commit}.tar.gz")
sha512sums=('7d655c8b4232d8e9f3662ead73af7d0434f863cb5889405f457fca0290936e09428a8216e775d7030600479d51d2c6375c7b0bed2f3b6e002e83f1008913174e')

package() {
  cd "rime-pinyin-simp-${_commit}"
  install -Dm644 *.yaml -t "${pkgdir}${MINGW_PREFIX}/share/rime-data/"
}
